import GameUtils from "../GameUtils";
import { Big } from "../core/Big";
import { Terrain } from "../core/Point";

export class 沙兵 extends Big {
  
    terrainAdapt() {
        switch (this.point.terrain) {
            case Terrain.SHAN:
            case Terrain.SHUI:
                this.die(this.player)
        }
        if (this.is_death) {
            return
        }
        this.point.changeTerrain(Terrain.SHA)
        this.gameMgr.sendBroadcast(GameUtils.getObj("play_sound",{"sound":"沙兵_化沙","username":this.player.username}))
    }
}